package io.geekidea.springbootplus.system.service;

import io.geekidea.springbootplus.framework.common.service.BaseService;
import io.geekidea.springbootplus.framework.core.pagination.Paging;
import io.geekidea.springbootplus.system.entity.Advertise;
import io.geekidea.springbootplus.system.param.AdvertisePageParam;
import io.geekidea.springbootplus.system.param.AdvertiseStatusParam;
import io.geekidea.springbootplus.system.vo.AdvertiseQueryVo;

import java.util.List;

public interface AdvertiseService extends BaseService<Advertise> {

    boolean addSysAdvertise(AdvertiseQueryVo sysAdvertise) throws Exception;

    boolean updateSysAdvertise(AdvertiseQueryVo sysAdvertise) throws Exception;

    boolean deleteSysAdvertiseById(Integer id) throws Exception;

    boolean  deleteAllAdvertise(List<Integer> ids) throws Exception;

    Paging<AdvertiseQueryVo> getSysAdvertisePageList(AdvertisePageParam advertisePageParam) throws Exception;

    AdvertiseQueryVo findAdvertiseById(Integer id);

    boolean updateAdvertiseStatus(AdvertiseStatusParam advertiseStatusParam);
}
